package com.codelint.gt20post;

import java.io.OutputStream;
import java.net.Socket;

/**
 * User: light
 * Date: 5/27/13
 * Time: 5:24 PM
 */
public class AppTest {
    public static void main(String[] args) throws Exception {
            Socket socket = new Socket("115.157.72.184", 8825);
            OutputStream out = socket.getOutputStream();
            byte[] bytes = {
                    0x68, 0x68, 0x25, 0x00, 0x00, 0x03, 0x53, 0x41,
                    (byte) 0x90, 0x31, (byte) 0x83, 0x55, 0x02, 0x00, 0x02, 0x10,
                    0x0A, 0x0C, 0x0E, 0x03, 0x0D, 0x19, 0x03, 0x24,
                    (byte) 0xDC, (byte) 0xB0, 0x0C, (byte) 0xE1, (byte) 0xF3, 0x75, 0x00, 0x00,
                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
                    0x0D, 0x0A};
            out.write(bytes);
            /*
    		InputStream is=socket.getInputStream();
    		DataInputStream dis=new DataInputStream(is);
    		dis.close();*/
            out.close();
            socket.close();
        }
}
